//
// Created by axin on 24-8-12.
//
#include "seqlist.h"

//测试头尾插入删除
void TestSeqListPushPop() {
    SL s;
    SeqListInit(&s);
    SeqListPushback(&s,1);
    SeqListPushback(&s,2);
    SeqListPushback(&s,3);
    SeqListPushback(&s,4);
    SeqListPushback(&s,5);
    SeqListPushback(&s,6);
    SeqListPushback(&s,7);
    SeqListPushback(&s,8);
    SeqListPushback(&s,9);
    SeqListPushback(&s,10);

    SeqListPrint(&s);

    SeqListPopBack(&s);
    SeqListPopBack(&s);
    SeqListPrint(&s);

    SeqListPushFront(&s,-1);

    SeqListPrint(&s);

    SeqListPopFront(&s);
    SeqListPopFront(&s);
    SeqListPrint(&s);
    SeqListDestory(&s);

}

int main() {
    TestSeqListPushPop();
    // printf("%zd\n",sizeof(3+3.5));
    return 0;
}
